import request from '@/utils/request'

/**
 * 店铺设置表分页查询
 * @param {查询条件} data
 */
export function listCorecmssetting(query) {
  return request({
    url: 'system/Corecmssetting/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增店铺设置表
 * @param data
 */
export function addCorecmssetting(data) {
  return request({
    url: 'system/Corecmssetting',
    method: 'post',
    data: data,
  })
}
/**
 * 修改店铺设置表
 * @param data
 */
export function updateCorecmssetting(data) {
  return request({
    url: 'system/Corecmssetting',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取店铺设置表详情
 * @param {Id}
 */
export function getCorecmssetting(id) {
  return request({
    url: 'system/Corecmssetting/' + id,
    method: 'get'
  })
}

/**
 * 删除店铺设置表
 * @param {主键} pid
 */
export function delCorecmssetting(pid) {
  return request({
    url: 'system/Corecmssetting/delete/' + pid,
    method: 'POST'
  })
}
